import request from '@/utils/request'

// 查询实验室地址列表
export function listLbroom(query) {
  return request({
    url: '/labdata/lbroom/list',
    method: 'get',
    params: query
  })
}

//allBuilding
export function listAllBuilding(query) {
  return request({
    url: '/labdata/lbroom/allBuilding',
    method: 'get',
    params: query
  })
}
// 查询实验室地址详细
export function getLbroom(classRoomId) {
  return request({
    url: '/labdata/lbroom/' + classRoomId,
    method: 'get'
  })
}

// 新增实验室地址
export function addLbroom(data) {
  return request({
    url: '/labdata/lbroom',
    method: 'post',
    data: data
  })
}

// 修改实验室地址
export function updateLbroom(data) {
  return request({
    url: '/labdata/lbroom',
    method: 'put',
    data: data
  })
}

// 删除实验室地址
export function delLbroom(classRoomId) {
  return request({
    url: '/labdata/lbroom/' + classRoomId,
    method: 'delete'
  })
}

// 导出实验室地址
export function exportLbroom(query) {
  return request({
    url: '/labdata/lbroom/export',
    method: 'get',
    params: query
  })
}